package com.eye.system.search;

public abstract class SearchBase {
    protected int pageIndex = 1;
    protected int pageSize = 10;

    public SearchBase() {
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageIndex() {
        return this.pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getPageOffset() {
        return (this.pageIndex - 1) * this.pageSize;
    }
}
